#include "header.h"

void commandLine(int argc, char *argv[])
{
	printf("No of arguments = %d\n",argc);

	if(argc > 3 || argc < 2)
	{
		perror("Error in command line arguments \n");
		exit(0);
	}
	
	for(argc--,argv++;argc>0;argc--,argv++)
	{
		if(*argv[0] == '-')
		{
			if(strcmp(*argv,"-reset") == 0)
			{
				argc--;
				argv++;
				resetFlag = 1;
				printf("Reset Node\n");
			}
			else
			{
				perror("Error in command line arguments \n");
				exit(0);
			}
		}
		startupFile = *argv;
		printf("Start File = %s\n",startupFile);
	}	
}

